GBML manual / Input

action_reset

Puts the action back to the buttons Project Settings gave it, undoing any action_rebind() of it.

Syntax

action_reset(a)

Arguments

NameType
aaction

Returns

Nothing.

Description

Puts an action back to the buttons Project Settings gave it. It undoes any action_rebind of that action, and does nothing if the action was never rebound.

Example

if (btn_pressed(BTN_START)) {
    action_reset(fire);
    action_reset(jump);
}

Pressing START gives both actions their own buttons back, like a "reset to defaults" choice on a controls screen.

See also: action_rebindaction_heldProject settings